package com.usian.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.io.Serializable;
import java.util.Date;



@Table(name = "user")
public class User implements Serializable {

	private static final long serialVersionUID = 7231070964898230924L;
	@TableId(type = IdType.AUTO)
	@Column(name = "userld")
	private Integer userld;

	@Column(name = "userName")
	private String userName;

	@Column(name = "password")
	private String password;

	@Column(name = "user_type")
	private Integer userType;

	@Column(name = "userDescription")
	private String userDescription;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@Column(name = "inputDate")
	private Date inputDate;

	@Column(name = "input_date_str")
	private String inputDateStr;

	@Column(name = "role_id")
	private Integer roleId;


	public User() {
	}

	public User(Integer userld, String userName, String password, Integer userType, String userDescription, Date inputDate, String inputDateStr, Integer roleId) {	
		this.userld = userld;
		this.userName = userName;
		this.password = password;
		this.userType = userType;
		this.userDescription = userDescription;
		this.inputDate = inputDate;
		this.inputDateStr = inputDateStr;
		this.roleId = roleId;
	}


	public Integer getUserld() {
		return userld;
	}

	public void setUserld(Integer userld) {
		this.userld = userld;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserDescription() {
		return userDescription;
	}

	public void setUserDescription(String userDescription) {
		this.userDescription = userDescription;
	}

	public Date getInputDate() {
		return inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	public String getInputDateStr() {
		return inputDateStr;
	}

	public void setInputDateStr(String inputDateStr) {
		this.inputDateStr = inputDateStr;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}


	@Override
	public String toString() {
		return "User{" +
				"userld='" + userld + '\'' +
				"userName='" + userName + '\'' +
				"password='" + password + '\'' +
				"userType='" + userType + '\'' +
				"userDescription='" + userDescription + '\'' +
				"inputDate='" + inputDate + '\'' +
				"inputDateStr='" + inputDateStr + '\'' +
				"roleId='" + roleId + '\'' +
				'}';
	}

}
